package com.jiangli.mapper;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface SearchHotMapper {

    /**
     * 增加热词计数
     */
    void incrementCount(@Param("keyword") String keyword);

    /**
     * 查询Top N热门词
     */
    List<String> selectTopHotWords(@Param("limit") int limit);
}
